package com.builder;

import com.builder.settings.DefaultHelperStorage;
import com.builder.settings.ListPropertyStorage;
import com.builder.settings.PropertyEditorDialog;
import com.swingson.SwingsonGuiBuilder;
import javax.swing.SwingUtilities;

/**
 * @author Dmitry
 */
public class TopologyBuilder {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        SwingsonGuiBuilder.setWindowsLookAndFeel();
        SwingUtilities.invokeLater(new Runnable() {

            @Override
            public void run() {
                PropertyEditorDialog dialog = new PropertyEditorDialog(null,
                        new ListPropertyStorage()
                        .add("db.url", "jdbc://host/db").add("db.port", "3564").add("sdfa.4545", "sfgsdf sdfg df").add("tyh.yutrn", "asssa"),
                        new DefaultHelperStorage()
                        .addEntity("db.url", "Url for database where topology will write the results")
                        .addEntity("db.port", "Network port of database where topology will write the results"));
                dialog.setLocationRelativeTo(null);
                dialog.setVisible(true);

            }
        });

    }

}
